package com.tianji.learning.domain.po;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * <p>
 * 课程笔记表
 * </p>
 *
<<<<<<< HEAD
 * @author lvbin
=======
<<<<<<< HEAD
 * @author 张政
=======
 * @author L.HS
>>>>>>> lhsheng
>>>>>>> origin/zhangzheng
 * @author auth
 * @author chuanyun
 * @author author
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("note")
@ApiModel(value="Note对象", description="课程笔记表")
public class Note implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户id")
    private Long usrId;

    @ApiModelProperty(value = "课程id")
    private Long courseId;

    @ApiModelProperty(value = "章id")
    private Long chapterId;

    @ApiModelProperty(value = "小节id")
    private Long sectionId;

    @ApiModelProperty(value = "视频播放的时间点")
    private Integer noteMoment;

    @ApiModelProperty(value = "笔记内容")
    private String content;

    @ApiModelProperty(value = "是否是私密")
    private Boolean isPrivate;

    @ApiModelProperty(value = "是否是隐藏")
    private Boolean hidden;

    @ApiModelProperty(value = "引用次数")
    private Integer gatherTimes;

    @ApiModelProperty(value = "点赞数")
    private Integer likeTimes;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


}
